package com.esun.payment_api.service.impl;

import com.esun.payment_api.bean.DkTaskBean;
import com.esun.payment_api.domain.SysDictProject;
import com.esun.payment_api.mapper.SysDictProjectMapper;
import com.esun.payment_api.service.SysDictProjectService;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("SysDictProjectService")
public class SysDictProjectServiceImpl implements SysDictProjectService {

    @Resource
    SysDictProjectMapper sysDictProjectMapper;

    @Override
    public List<DkTaskBean> claimSelectTask(Short companyId, Integer claimId, String year, String searchStr, Integer pageSize, Integer pageNum){
        PageHelper.startPage(pageNum, pageSize);
        return sysDictProjectMapper.claimSelectTask(companyId,claimId,year,searchStr);
    }

    @Override
    public List<SysDictProject> getInvSelectTaskList(Short coId, Integer invId, String year, String searchStr, Integer pageSize, Integer pageNum) {
        PageHelper.startPage(pageNum, pageSize);
        return sysDictProjectMapper.getInvSelectTaskList(coId, invId, year, searchStr);
    }
}
